#define  _CRT_SECURE_NO_WARNINGS
#include"list.h"

void TestList1() {
	ListNode* phead = ListInit();
	ListPushBack(phead, 1);
	ListPushBack(phead, 2);
	ListPushBack(phead, 3);
	ListPushBack(phead, 4);
	ListPushBack(phead, 5);
	ListPushBack(phead, 6);
	ListPrint(phead);
	ListPushFront(phead, 7);
	ListPushFront(phead, 8);
	ListPrint(phead);
	ListPopFront(phead);
	ListPrint(phead);
	ListDestory(phead);



	
}

void TestList2() {
	ListNode* phead = ListInit();
	ListPushBack(phead, 1);
	ListPushBack(phead, 2);
	ListPushBack(phead, 3);
	ListPushBack(phead, 4);
	ListPrint(phead);
	ListNode* pos = ListFind(phead, 3);
	ListInsert(pos, 30);
	ListPrint(phead);
	ListEease(pos);
	ListPrint(phead);
	ListDestory(phead);


}
int main() {
	TestList2();
	return 0;
}